import request from '@/utils/request'
import * as qs from 'qs'

export class ManagerForm {
  birth;
  cityId;
  company;
  job;
  password;
  phone;
  realName;
  sex;
}

export var ManagerFormRule = {
  birth: [
    {type: 'date', required: true, message: '必填'}
  ],
  cityId: [
    {type: 'number', required: true, message: '必填'}
  ],
  company: [
    {required: true, message: '必填'}
  ],
  job: [
    {required: true, message: '必填'}
  ],
  phone: [
    {required: true, message: '必填'},
    {pattern: /^1\d{10}$/, message: '手机号格式错误。例如：18812345678'}
  ],
  realName: [
    {required: true, message: '必填'},
    {min: 2, max: 20, message: '请填写正确的姓名'}
  ],
  sex: [
    {required: true, message: '必填'}
  ]
}

export function addManagerAccount() {

}
